﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;

namespace Web.FrmSetting
{
    public partial class user_main : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
               

            }
        }

        //public void BindData()
        //{

        //    //查询全部信息列表
        //    StringBuilder strSql = new StringBuilder();
        //    strSql.Append("  SELECT top 2 A.ID,C.strType AS InfoTypeID,B.strRealName AS UserID,");
        //    strSql.Append("  A.strTitle,A.strContent,A.BrowseTime,A.dt_Add,A.ISStick");
        //    strSql.Append("  FROM dbo.Info A INNER JOIN dbo.Users B ON A.UserID=B.ID");
        //    strSql.Append("  INNER JOIN dbo.InfoType C ON A.InfoTypeID=C.ID");
        //    strSql.Append("  WHERE ISKeepSecret=0");
        //    strSql.Append("  ORDER BY A.dt_Add DESC");

        //    DataTable dt = SQLHelper.ExecuteDataTable(strSql.ToString());


        //    if (dt != null && dt.Rows.Count != 0)
        //    {
        //        this.Repeater1.DataSource = dt.DefaultView;
        //        this.Repeater1.DataBind();
        //    }
        //}


        public string ISStick(object obj)
        {
            if (Convert.ToBoolean(obj) == true)
            {
                return "<span style='color:green'>[置顶]</span>";
            }
            else
            {
                return "";
            }
        }

   
    }
}